/*    */ package com.openbravo.pos.forms;
/*    */ 
/*    */ import java.awt.Dimension;
/*    */ import javax.swing.Action;
/*    */ import javax.swing.JButton;
/*    */ 
/*    */ public class MenuItemDefinition
/*    */   implements MenuElement
/*    */ {
/*    */   private Action act;
/*    */ 
/*    */   public MenuItemDefinition(Action act)
/*    */   {
/* 36 */     this.act = act;
/*    */   }
/*    */ 
/*    */   public void addComponent(JPanelMenu menu)
/*    */   {
/* 41 */     JButton btn = new JButton(this.act);
/*    */ 
/* 43 */     btn.setFocusPainted(false);
/* 44 */     btn.setFocusable(false);
/* 45 */     btn.setRequestFocusEnabled(false);
/* 46 */     btn.setHorizontalAlignment(10);
/* 47 */     btn.setPreferredSize(new Dimension(220, 50));
/*    */ 
/* 59 */     menu.addEntry(btn);
/*    */   }
/*    */ }

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.pos.forms.MenuItemDefinition
 * JD-Core Version:    0.6.0
 */